package com.myproject.mall.domain.dto;

import com.myproject.mall.domain.enums.OrderStatus;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 订单表单,区别于OrderDTO的是金额以字符串保存，避免精度丢失，id为字符串。
 */
@Data
public class OrderForm {
    private String id;

    private String sellerId;
    private String sellerName;

    private String buyerId;
    private String buyerName;

    private Long  goodsId;
    private String goodsTitle;

    private Integer couponId;

    private Integer amount;

    private String payMoney;
    private String actualMoney;

    private String payWay;

    private OrderStatus status;

    private String shipAddress;
    private String deliveryAddress;

    private LocalDateTime createTime;
    private LocalDateTime payTime;
}
